package com.chapter01exercise.homework14;

/**
 * @Author 小闽
 * @Date 2024/8/21 22:36
 * @PackageName: com.chapter01exercise.homework14
 * @ClassName: C
 * @Description: 子类
 * @Version 1.0
 */
public class C extends B {
    public C(){
        this("hello");
        System.out.println("我是c类的无参构造");
    }
    public C(String name){
        super("hahah");
        System.out.println("我是c类的有参构造");
    }
}
